package com.zzyl.nursing.service;

import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.FamilyMemberData;
import com.zzyl.nursing.dto.FamilyOrElderDto;
import com.zzyl.nursing.dto.UserLoginRequestDto;
import com.zzyl.nursing.vo.LoginVo;

import java.util.List;

public interface IFamilyMemberService {

    /**
     * 小程序登录接口
     * @param userLoginRequestDto
     * @return
     */
    LoginVo login(UserLoginRequestDto userLoginRequestDto);

    /**
     * 绑定家人
     * @param elderFamilyAddDto
     */
    void addFamily(FamilyOrElderDto elderFamilyAddDto);


    /**
     * 获取家人列表
     *
     * @return
     */
    List<FamilyMemberElder> getFamily();

    /**
     * 分页查询
     * @param pageNum, pageSize
     * @return
     */
    List<FamilyMemberData> listByPage(Integer pageNum, Integer pageSize);

    /**
     * 解绑
     *
     * @param id
     * @return
     */
    int deleteById(Long id);
}
